package mest.dao.cxj;

import mest.VO.cxj.CostOrderVO;
import mest.entity.costorder;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CostOrderDao {

    /**
     * 录入费用单
     *
     * @param co
     * @return
     */
    int insertCostOrder(@Param("co") costorder co,@Param("theirDb") String theirDb);


    /**
     * 修改费用单
     *
     * @param co
     * @return
     */
    int modifyCostOrder(@Param("co") costorder co,@Param("theirDb") String theirDb);


    /**
     * 查看费用单
     *
     * @param page
     * @param limit
     * @return
     */
    List<CostOrderVO> selectAllCostOrder(@Param("page") Integer page, @Param("limit") Integer limit,
                                         @Param("content") String content, @Param("theirDb") String theirDb);


    /**
     * 查看费用单条数
     *
     * @param content
     * @return
     */
    Integer selectCountCostOrder(@Param("content") String content,@Param("theirDb") String theirDb);

    /**
     * 删除费用单
     * @param id
     * @return
     */
    int deleteCostOrder(@Param("id") Integer id,@Param("theirDb") String theirDb);

}